import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import ElementUI from 'element-ui'
import config from './config.js'

import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.prototype.$config = config
Vue.prototype.$axios = axios
axios.defaults.baseURL = "/"

// debug
axios.defaults.baseURL = "http://127.0.0.1:8001/"
Vue.prototype.$power = true
Vue.prototype.$debug = true

// server manage
// Vue.prototype.$power = true
// Vue.prototype.$debug = true


// server onlyread
// Vue.prototype.$power = false
// Vue.prototype.$debug = false

new Vue({
	render: h => h(App),
}).$mount('#app')


Vue.prototype.$Trim = (str) => {
	return str.replace(/(^\s*)|(\s*$)/g, "");
}
